#ifndef _CSPRITE_H_
#define _CSPRITE_H_

#include <windows.h>
#include <commctrl.h>

class CBMPSprite
{
private:
	HIMAGELIST imgList;
	int imgCount;

	HBITMAP ReplaceColor(HBITMAP hBmp,COLORREF cOldColor,COLORREF cNewColor,HDC hBmpDC);
public:
	CBMPSprite(char *path, int w, int h, bool replaceColors);
	~CBMPSprite();

	void paint(HDC dc, int px, int py, int img, int color);
};

#endif //_CSPRITE_H_